6:30pm Review Coding Warmup 1
6:45pm Some Background
7:15pm Spatial Data Overview
7:45pm Break + Debugging (15 minutes)
8:00pm Coding
Racism In, Racism Out
Tidymodels Ch 1/2
Real world problems require accurate projections of geographic relationships.
CSV, Shapefile, GeoJSON
Key to project points onto Earth’s surface
Very common are 4326 or 4269 (census)
census_api_key("YOUR API KEY GOES HERE", install=TRUE)Let’s show quickly how the data we used last week from the Assessor can be converted to an sf object.
ccao <- read_csv('../../files/Assessor__Archived_05-11-2022__-_Residential_Modeling_Characteristics__Chicago_.zip')
mini <- ccao %>% st_as_sf(coords=c("Latitude", "Longitude")) %>% slice_sample(n=1000)
mini
st_crs(mini) <- 4326
mapview(mini) #this is backwards!
mini2 <- ccao %>% st_as_sf(coords=c("Longitude", "Latitude")) %>% slice_sample(n=1000)
st_crs(mini2) <- 4326
mapview(mini2)